const express = require('express')

const router = express.Router();
//get请求
router.get('/user', (req, res) => {
    res.send('1')
})

router.post('/user', (req, res) => {
    res.send('post')
})

module.exports = router;//向外共享了路由对象

